/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-14
 * Time: 16:14
 */

class Animal{
    public String name;
    public int age;
    public String color;
    public void eat(){
        System.out.println(name + "正在吃饭");
    }
}
class Dog extends Animal{
    public void swp(){
        System.out.println(name + "正在摇尾巴。");
    }
}

class Cat extends Animal{
    public void swp(){
        System.out.println(name + "正在摇尾巴。");
    }
}

public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Dog dog = new Dog();
        Cat cat = new Cat();
    }
}



